'use strict';
module.exports = async({collection,params,token,uniID})=>{
	let res = {}
	let payload = await uniID.checkToken(token)
	if(payload.code == 0){
		res = await collection.doc(params.uid).update({
			status:params.status
		});
		res = {...res,code:0,msg:'操作成功'}
	}else{
		res = payload
	}
	//返回数据给客户端
	return res
}